package net.orange.console;

import net.orange.console.model.dataset.ConsoleDataSet;

/**
 * The interface that all standard implementations of ConsoleWriter must
 * implement.ConsoleWriter can write the console data set or other object at
 * special object, like excel file,text file,database...
 */
public interface ConsoleWriter {
	/**
	 * Write the console data set to the object which specify object in url.
	 * 
	 * @param url
	 *            The specify object url.
	 * @param dataSet
	 *            The target current console data set.
	 * @return The recount count write in the specify object url, -1 for fail.
	 * @throws Exception
	 */
	public long write(String url, ConsoleDataSet dataSet) throws Exception;
}
